package com.hdoit.ares.web.acc.modelconfig;

import com.hdoit.ares.web.acc.providers.GoldenBeanTypeProvider;
import com.tennetcn.component.attribute.DateTimeAttribute;
import com.tennetcn.component.attribute.DisplayNameAttribute;
import com.tennetcn.component.attribute.DropDownListAttribute;
import com.tennetcn.component.attribute.base.ModelMetadataAttributeConfiguration;

/**
 * @author      caochengmeng
 * @email       
 * @createtime  2017年11月29日 21:08:38
 * @comment
 */
public class GoldenBeanDetailSearchConfig extends ModelMetadataAttributeConfiguration{
    public GoldenBeanDetailSearchConfig(){
    	this.setProperty("startDate")
        .hasAttribute(new DisplayNameAttribute("交易时间从"))
        .hasAttribute(new DateTimeAttribute());

    this.setProperty("endDate")
        .hasAttribute(new DisplayNameAttribute("到"))
        .hasAttribute(new DateTimeAttribute());
    
    this.setProperty("userIdentity")
    .hasAttribute(new DisplayNameAttribute("客户编号"));

    this.setProperty("customerName")
    .hasAttribute(new DisplayNameAttribute("客户名"));
    
    this.setProperty("outTradeNo")
    .hasAttribute(new DisplayNameAttribute("交易单号"));
    
    this.setProperty("goldenBeanType")
    .hasAttribute(new DisplayNameAttribute("交易类型"))
    .hasAttribute(new DropDownListAttribute(new GoldenBeanTypeProvider("senior")));
    }
}